package day12.afternoon1;

/**
 * 管理局
 */
public class Administration {
    public void flying(Bird bird){
        bird.fly();
    }
    public void flying1(Plane plane){
        plane.fly();
    }
    public void flying2(SuperMan superMan){
        superMan.fly();
    }

    public static void main(String[] args) {
        Administration administration = new Administration();
        administration.flying(new Bird("灰色","麻雀"));
        administration.flying1(new Plane("C919大型客运机"));
        administration.flying2(new SuperMan("超人",20));
    }
}
